package com.share.design.chain.demo01;

/**
 * @author caifan
 * @since 2022/11/7
 */
public class Client {
    public static void main(String[] args) {
        Executor executor1 = new NegativeExecutor();
        Executor executor2 = new ZeroExecutor();
        Executor executor3 = new PositiveExecutor();
        executor1.setNext(executor2);
        executor2.setNext(executor3);
        executor1.handle(-10);
        executor1.handle(0);
        executor1.handle(10);
    }
}
